import request from '@/utils/request'

/**
 *  轨迹跟踪-输入设备id以及起始时间和终止时间获取信息
 *  pmy
 * @export
 * @return
 */
export async function getTrackByid(dvo, startTime, endTime) {
    let url = "/comlbs/realtimePositioning/trajectory/originalData";
    return request({
        url: url,
        method: 'post',
        data: {
            dvo: dvo,
            startTime: startTime,
            endTime: endTime
        },
    });
};

/**
 *  实时定位-输入设备id获取信息
 *  pmy
 * @export
 * @return
 */
export async function getLastGpsByid(deviceId) {
    let url = "/comlbs/realtimePositioning/queryLastGps";
    return request({
        url: url,
        method: 'get',
        params: {
            deviceId: deviceId,
        },
    });
};
